<%@page import="net.sf.json.JSONObject"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/classes/DBHelper.class.jsp"%>
<%@ include file="/classes/CommonHelper.class.jsp"%>
<%
	//获取数据
	String qa_id = getParameter(request, "qa_id");
	JSONObject result = new JSONObject();
	if (nullOrEmpty(qa_id)) {
		result.put("status", -1);
		result.put("msg", "参数错误");
		out.println(result);
		return;
	}
	String sql = "DELETE FROM APP_QA WHERE qa_id = ?";
	int i = executeUpdate(sql, new Object[] { qa_id });
	if (i >= 1) {
		result.put("status", 200);
		result.put("msg", "删除成功");
		out.println(result);
	} else {
		result.put("status", -1);
		result.put("msg", "删除失败");
		out.println(result);
	}
%>